<template>
    <fieldset class="sndsoncom">
        <table border="1" cellpadding="0" cellspacing="0">
            <tr align="center">
                <th>序号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>身份</th>
            </tr>
            <tr v-for="item in sonmsg" :key="item"  align="center">
                <td >{{ item.id }}</td>
                <td>{{ item.uname }}</td>
                <td v-if="item.gender==0">女</td>
                <td v-if="item.gender==1">男</td>
                <td v-if="item.shenfen==1">组长</td>
                <td v-if="item.shenfen==2">组员</td>
            </tr>
        </table>
    </fieldset>
</template>
<script setup>
defineProps(['sonmsg']);
</script>
<style scoped>
.sndsoncom{
    width: 100%;
}
.sndsoncom table{
    margin: 0 auto;
    width: 95%;
    border: 1px rgb(151, 255, 182);
}
</style>